home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 September / Chip_2001-09_cd1.bin / sharewar / webscrip / webscripter4s.exe / {app} / Includes / jsMsgBox.ob < prev    next >
Encoding:
Text File  |  2001-07-11  |  744 b   |  36 lines

  1. //begin_lib <!-- Begin External JavaScript -- DO NOT REMOVE THIS LINE -->
  2.  
  3. function jsMsgBox(){
  4. this.Message="";
  5. this.DefaultText="";
  6. this.ShowMessage=msg_ShowMessage;
  7. this.ShowInput=msg_ShowInput;
  8. this.ShowQuestion=msg_ShowQuestion;
  9. }
  10.  
  11. function msg_ShowMessage(msg){
  12.          if(msg!=undefined){
  13.          this.Message=msg;
  14.          }
  15. alert(this.Message);
  16. }
  17.  
  18. function msg_ShowInput(msg,def){
  19.          if(msg!=undefined){
  20.          this.Message=msg;
  21.          }
  22.          if(def!=undefined){
  23.          this.DefaultText=def;
  24.          }
  25. return prompt(this.Message,this.DefaultText);
  26. }
  27.  
  28. function msg_ShowQuestion(msg){
  29.          if(msg!=undefined){
  30.          this.Message=msg;
  31.          }
  32. return confirm(this.Message);
  33. }
  34.  
  35. //end_lib <!-- End External JavaScript -- DO NOT REMOVE THIS LINE -->
  36.